package com.wm.car;

public abstract class Car {
    private String brand;
    private double price;
    private String model;

    public Car() {
    }

    public Car(String brand, double price, String model) {
        setBrand(brand);
        setModel(model);
        setPrice(price);
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }
    public abstract void drive();
}
